import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
const routes = [
  {
    path:'/', component: ()=>import("@/pages/Index/index"), name:"index", redirect:{ name: 'homePage'},
    children:[
      { path: 'goods', name: 'goods', component: ()=>import("@/pages/Goods/Index") },
      { path: 'order', name: 'order', component: ()=>import("@/pages/Order/Index") },
      { path: 'evaluate', name: 'evaluate', component: ()=>import("@/pages/Evaluate/Index") },
      { path: 'user', name: 'user', component: ()=>import("@/pages/User/Index") },
      { path: 'shop', name: 'shop', component: ()=>import("@/pages/Shop/Index") },
      { path: 'homePage', name: 'homePage', component: ()=>import("@/pages/HomePage/Index"),  },

    ]
  },


]

const router = new Router({
  mode:"hash",
  routes
})
export default router
